package com.icetech.eom.controller.sys;


import com.icetech.commonbase.ResultTools;
import com.icetech.commonbase.constants.CodeConstantsEnum;
import com.icetech.commonbase.domain.response.ObjectResponse;
import com.icetech.eom.common.annotation.SystemLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangzw
 */
@Slf4j
@RestController
@Api(description = "Security相关接口")
public class SecurityController {
    @RequestMapping(value = "/needLogin",method = RequestMethod.GET)
    @ApiOperation(value = "没有登录")
    @SystemLog(description = "没有登录")
    public ObjectResponse<Object> needLogin(){
        return ResultTools.fail(CodeConstantsEnum.ERROR_401.getCode(), "您还未登录");
    }
}
